home *** CD-ROM | disk | FTP | other *** search
/ Network Supervisor's Toolkit / Network Supervisor's Toolkit.iso / patches / _winfile / lw42w2 / lwp_log.bat < prev    next >
DOS Batch File  |  1996-07-10  |  2KB  |  69 lines

  1. rem $Id: lwp_log.bat 1.1 95/03/21 22:51:04 frotz Exp $
  2. rem $Source: h:/prod/lwp/patches/rcs/lwp_log.bat $
  3. rem $Locker:  $
  4.  
  5. rem
  6. rem    LWP_LOG.BAT:  LAN WorkPlace installation checker log process.
  7. rem    (C) Copyright 1995 Novell, Inc.  All Rights Reserved.
  8. rem
  9.  
  10. rem
  11. rem    Called by LWP_CHK.BAT (via _LWPFIND.BAT via _LWPFILE.BAT)
  12. rem    Logs information to the temporary log file: %TEMP%\LWP.LOG
  13. rem
  14.  
  15. if  (%1%2)==()    goto END
  16. if  exist %1%2    set _pth=%1%2
  17. if  exist %1\%2    set _pth=%1\%2
  18. if  exist %_drive%%1\%2    set _pth=%_drive%%1\%2
  19. if  (%_type%)==(0)    goto END
  20. if  (%_pth%)==()    goto END
  21. echo %_msg% %_pth%
  22. if  (%_pth%)==(%_DRIVE%%_PATH%\%_FILE%)  goto VERSION
  23.  
  24.  
  25.  
  26.  
  27. :WARNING
  28. echo NOTE:  %_file% found in %1, not %_drive%%_path%>>%temp%\lwp.log
  29. echo ***********************************************>>%temp%\lwp.log
  30. goto VERSION
  31.  
  32.  
  33.  
  34. :VERSION
  35. echo %_msg% %_pth%:>>%temp%\lwp.log
  36. if  (%os%)==(NWDOS)    xdir %_pth%     >>%temp%\lwp.log
  37. if  (%os%)==()        dir  %_pth%     >>%temp%\lwp.log
  38. if  (%_vrsn%)==(4.2)    version.exe %_pth%    >>%temp%\lwp.log
  39. if  (%_vrsn%)==(5)    verread.exe %_pth%    >>%temp%\lwp.log
  40. if  (%_type%)==(WI)    goto CONTENTS
  41. if  (%_type%)==(I)    goto CONTENTS
  42. if  (%_type%)==(BAT)    goto CONTENTS
  43. if  (%_type%)==(P)    goto REVISION
  44. goto BOTTOM
  45.  
  46.  
  47.  
  48.  
  49. :REVISION
  50. find "DOCUMENT REVISION:" %_pth%
  51. find "DOCUMENT REVISION:" %_pth% >>%temp%\lwp.log
  52. goto BOTTOM
  53.  
  54.  
  55.  
  56.  
  57. :CONTENTS
  58. echo ============================== >>%temp%\lwp.log
  59. type %_pth% >>%temp%\lwp.log
  60. echo ============================== >>%temp%\lwp.log
  61. goto BOTTOM
  62.  
  63.  
  64.  
  65. :BOTTOM
  66. echo.>>%temp%\lwp.log
  67. echo.>>%temp%\lwp.log
  68. :END
  69.